package com.ruoyi.eims.purchase.domain;

import java.math.BigDecimal;
import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.core.annotation.Excel;
import com.ruoyi.common.core.web.domain.BaseEntity;

/**
 * 采购订单管理对象 t_purchase_order
 * 
 * @author hp
 * @date 2023-02-04
 */
public class PurchaseOrder extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** id */
    private Long id;

    /** 供应商 */
    @Excel(name = "供应商")
    private Long vendorId;

    /** 单据编号 */
    @Excel(name = "单据编号")
    private String orderNo;

    /** 商品 */
    @Excel(name = "商品")
    private String goodsId;

    /** 单据日期 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "单据日期", width = 30, dateFormat = "yyyy-MM-dd")
    private Date createDate;

    /** 操作员 */
    @Excel(name = "操作员")
    private Long userId;

    /** 金额合计 */
    @Excel(name = "金额合计")
    private BigDecimal price;

    /** 支付定金 */
    @Excel(name = "支付定金")
    private BigDecimal deposit;

    /** 状态 */
    @Excel(name = "状态")
    private Integer state;

    /** 优惠金额 */
    @Excel(name = "优惠金额")
    private BigDecimal preferentialPrice;

    /** 优惠后金额 */
    @Excel(name = "优惠后金额")
    private BigDecimal realPrice;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setVendorId(Long vendorId) 
    {
        this.vendorId = vendorId;
    }

    public Long getVendorId() 
    {
        return vendorId;
    }

    public String getOrderNo() {
        return orderNo;
    }

    public void setOrderNo(String orderNo) {
        this.orderNo = orderNo;
    }

    public String getGoodsId() {
        return goodsId;
    }

    public void setGoodsId(String goodsId) {
        this.goodsId = goodsId;
    }

    public void setCreateDate(Date createDate)
    {
        this.createDate = createDate;
    }

    public Date getCreateDate() 
    {
        return createDate;
    }
    public void setUserId(Long userId) 
    {
        this.userId = userId;
    }

    public Long getUserId() 
    {
        return userId;
    }
    public void setPrice(BigDecimal price) 
    {
        this.price = price;
    }

    public BigDecimal getPrice() 
    {
        return price;
    }
    public void setDeposit(BigDecimal deposit) 
    {
        this.deposit = deposit;
    }

    public BigDecimal getDeposit() 
    {
        return deposit;
    }
    public void setState(Integer state) 
    {
        this.state = state;
    }

    public Integer getState() 
    {
        return state;
    }

    public void setPreferentialPrice(BigDecimal preferentialPrice)
    {
        this.preferentialPrice = preferentialPrice;
    }

    public BigDecimal getPreferentialPrice()
    {
        return preferentialPrice;
    }
    public void setRealPrice(BigDecimal realPrice)
    {
        this.realPrice = realPrice;
    }

    public BigDecimal getRealPrice()
    {
        return realPrice;
    }

    @Override
    public String toString() {
        return "PurchaseOrder{" +
                "id=" + id +
                ", vendorId=" + vendorId +
                ", orderNo='" + orderNo + '\'' +
                ", goodsId='" + goodsId + '\'' +
                ", createDate=" + createDate +
                ", userId=" + userId +
                ", price=" + price +
                ", deposit=" + deposit +
                ", state=" + state +
                ", preferentialPrice=" + preferentialPrice +
                ", realPrice=" + realPrice +
                '}';
    }
}
